<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/countDownTimerTitle"
        android:textAppearance="@style/CountDownTextStyle"
        app:layout_constraintBottom_toTopOf="@+id/frameLayout"
        app:layout_constraintEnd_toEndOf="@+id/countDownSlider"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <FrameLayout
        android:id="@+id/frameLayout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toTopOf="@+id/countDownSlider"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/textView">

        <ProgressBar
            android:id="@+id/countDownProgressBar"
            android:layout_width="250dp"
            android:layout_height="250dp"
            android:layout_gravity="center"
            android:indeterminateOnly="false"
            android:max="5"
            android:progress="5"
            android:progressDrawable="@drawable/circle_progress"
            android:rotation="-90" />

        <TextView
            android:id="@+id/countDownText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:text="5"
            android:textAppearance="@style/CountDownTextStyle"
            android:textSize="60sp" />
    </FrameLayout>

    <com.google.android.material.slider.Slider
        android:id="@+id/countDownSlider"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:stepSize="5"
        android:valueFrom="5"
        android:valueTo="200"
        app:layout_constraintBottom_toTopOf="@+id/countDownStart"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/frameLayout" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/countDownStart"
        style="@style/Widget.Material3.Button.OutlinedButton.CountDown"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:paddingHorizontal="100dp"
        android:text="@string/countDownStart"
        android:textAppearance="@style/CountDownTextStyle"
        app:layout_constraintBottom_toBottomOf="@id/changeTheme"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/countDownSlider" />

    <TextView
        android:id="@+id/changeThemeTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/changeTheme"
        app:layout_constraintBottom_toTopOf="@id/changeTheme"
        app:layout_constraintLeft_toLeftOf="@id/countDownStart"
        app:layout_constraintRight_toRightOf="@id/countDownStart"
        app:layout_constraintTop_toBottomOf="@id/countDownStart" />

    <com.google.android.material.switchmaterial.SwitchMaterial
        android:id="@+id/changeTheme"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="@id/countDownStart"
        app:layout_constraintRight_toRightOf="@id/countDownStart"
        app:layout_constraintTop_toBottomOf="@+id/changeThemeTextView" />
</androidx.constraintlayout.widget.ConstraintLayout>